<template>
	<view class="charts-box">
		<!-- #ifdef H5-->
		<qiun-data-charts :type="type" :chartData="chartData" :eopts="option" :loadingType="5" :errorMessage="errorMessage" :echartsH5="true"/>
		<!-- #endif -->
		<!-- #ifndef H5 -->
		<qiun-data-charts :type="type" :chartData="chartData" :eopts="option" :loadingType="5" :errorMessage="errorMessage" :echartsApp="true"/>
		<!-- #endif -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props: {
			chartData: {
				type: Object,
				default: () => {}
			}, 
			option: {
				type: Object,
				default: () => {}
			},
			type: {
				type: String,
				default: 'line'
			},
			errorMessage: {
				type: String,
				default: null
			},
		},
		methods: {
			
		}
	}
</script>

<style scoped>
	.charts-box {
		width: 100%;
		height: 100%;
	}
</style>
